package cn.caplike.demo.repository.java.concurrency.synchroniz.ed;


class SynchronizedOnMethod {
    private int count = 10;

    public synchronized void m() {
        count--;
        System.out.println(Thread.currentThread().getName() + " count = " + count);
    }
}
